package com.phospherus.flow.service

import com.phospherus.common.service.impl.BaseServiceImpl
import com.phospherus.flow.entity.FormItemPermission
import com.phospherus.flow.repository.FormItemPermissionRepository
import org.springframework.stereotype.Service

/**
 * @author songjinlong
 * @version 1.0
 * @since 2017/11/15
 */
@Service
class FormItemPermissionService : BaseServiceImpl<FormItemPermission, Long, FormItemPermissionRepository>() {
    fun getPermissionByNodeId(currNodeId: Long): List<FormItemPermission> = repository.findByFlowNodeId(currNodeId)
}